from django.contrib import admin
from ourcity.elections import models

class ElectionAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    list_display = ('name', 'slug')
admin.site.register(models.Election, ElectionAdmin)
